<?php
class load{
	
	function model($name)
	{
		$file	=	MODEL_DIR.$name.EXT;
		if(!file_exists($file)){
			exit("Model $name is not existed.");
		}
		
		require_once MODEL_DIR.$name.EXT;
	}
	
	function helper($name)
	{
		$file	=	HELPER_DIR.$name.'_helper'.EXT;
		if(!file_exists($file))
		{
			exit("Helper $name is not existed.");
		}
		
		require_once $file;
	}
}